def gen_example():

    value = 'xxxxx'
    value = yield 'result:first yield'  # value 在
    print('value1', value)
    value = yield 88
    print('value2', value)


gen = gen_example()
# 第一次必须next
res1 = gen.send(None)
print('res1', res1)
res2 = gen.send(23)
print('res2', res2)  # 88
gen.send(None)

